package net.xconcepts.stockdata.model.analysis.indicator;

import java.util.LinkedList;

import net.xconcepts.stockdata.model.analysis.TrendAnalyzer;

public class TrendIndicator extends PeriodIndicator<Double, Double> {



	public TrendIndicator(Indicator<Double, ?> baseIndicator,
			int numTicksInPeriod) {
		super(baseIndicator, numTicksInPeriod);
	}

	@Override
	protected Double calculateIndicator(LinkedList<Double> historicData) {
		return TrendAnalyzer.getSlope(historicData);
	}


}
